<template>
  <div class="amateur-training-container">
    <div class="title">业余训练情况-社会力量办俱乐部</div>
    <div class="chart-wrapper">
      <div class="data-item">
        <div class="number">80,000</div>
        <div class="label">体校数量/所</div>
      </div>
      <div class="data-item">
        <div class="number">20,000</div>
        <div class="label">在训运动员数量/人</div>
      </div>
    </div>
  </div>
</template>

<script>
import { getSheet1SportClub } from "@/api/statistics";  
export default {
  name: 'AmateurTrainingClub',
  data() {
    return {
      date: new Date().getFullYear(),
    };
  },
  mounted() {
    this.datalist();
  },
  methods: {
    async datalist() {
      const res = await getSheet1SportClub({
        year: this.date,
        sportClubType: 2
      });
      if (res.data) {
        console.log(res.data);
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.amateur-training-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  
  .title {
    font-size: 16px;
    color: #1D2129;
    font-weight: 500;
    margin-bottom: 16px;
  }
  
  .chart-wrapper {
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    .data-item {
      width: 100%;
      height: 48%;
      background: #F7F8FA;
      padding: 12px;
      
      .number {
        font-size: 24px;
        font-weight: 400;
        color: #0F0F0F;
        margin-bottom: 4px;
      }
      
      .label {
        font-weight: 400;
      }
    }
  }
}
</style> 